package week4;
import java.util.Set;
import java.util.HashSet;
/**
 * Created by dell on 2017/3/18.
 */
public class TextPoint {
    public static void main(String[] args){
        /*Object p1 = new Point(1, 1);
        Point p2 = new Point(1, 1);
        System.out.println(p1.equals(p2));*/

        Point p1 = new Point(1, 1);
        Point p2 = new Point(1, 1);
        Set<Point> pSet = new HashSet<Point>();
        pSet.add(p1);
        System.out.println(pSet.contains(p2));
    }
}
